package com.zx.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

/**
 * <h1>用户地址信息</h1>
 * */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class AddressInfo {

    private Long userId;
    private List<AddressItem> addressItems;
    /**
     * <h2>单个的地址信息</h2>
     * */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class AddressItem {

        private Long id;

        private String username;

        private String phone;

        private String province;

        private String city;

        private String addressDetail;

        private Date createTime;

        private Date updateTime;

        public AddressItem(Long id) {
            this.id = id;
        }
    }
}
